import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:whale/helper/utils/util.dart';

import '../index.dart';

/// hello
class ReportCell extends GetView<ReportController> {
  const ReportCell({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        color: ColorsUtil.bg,
        borderRadius: BorderRadius.circular(10.r),
      ),
      margin: EdgeInsets.fromLTRB(10.r, 15.r, 12.r, 0),
      padding: EdgeInsets.symmetric(horizontal: 10.r, vertical: 10.r),
      child: Row(
        children: [
          loadImage(height: 80.r),
          Expanded(
              child: Container(
            height: 80.r,
            padding: EdgeInsets.symmetric(horizontal: 10.r),
            child: Column(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Text(
                  '2022年度萧山区公平竞争审查工作情况报告',
                  style: TextStyle(
                    color: ColorsUtil.title,
                    fontSize: 16.sp,
                  ),
                ),
                Row(
                  mainAxisAlignment: MainAxisAlignment.end,
                  children: [
                    Text(
                      '2023-03-30',
                      style: TextStyle(
                        color: ColorsUtil.content,
                        fontSize: 12.sp,
                      ),
                    ),
                  ],
                )
              ],
            ),
          ))
        ],
      ),
    );
  }
}
